package cn.kooki.app.duobao.core;

/**
 * Created by GuDong on 15/10/8.
 * Contact with 1252768410@qq.com
 */
public class MainFactory {

    private static APIService mService;

    protected static final Object monitor = new Object();

    public static APIService getApiInstance(){
        synchronized (monitor){
            if(mService==null){
                mService = new MainRetrofit().getService();
            }
            return mService;
        }
    }
}
